---
title: SortField.SetIcon Method (Excel)
keywords: vbaxl10.chm843082
f1_keywords:
- vbaxl10.chm843082
ms.prod: excel
api_name:
- Excel.SortField.SetIcon
ms.assetid: 840e5a6b-bbaf-087d-06ba-715bde7cbe00
ms.date: 06/08/2017
---


# SortField.SetIcon Method (Excel)

Sets an icon for a  **SortField** object.


## Syntax

 _expression_ . **SetIcon**( **_Icon_** )

 _expression_ A variable that represents a **SortField** object.


### Parameters



|**Name**|**Required/Optional**|**Data Type**|**Description**|
|:-----|:-----|:-----|:-----|
| _Icon_|Required| **Icon**|The icon to be set.|

## See also


#### Concepts


[SortField Object](sortfield-object-excel.md)

